<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateBlogConfigTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('blog_config', function (Blueprint $table) {
            $table->increments('conf_id')->comment('配置ID');
            $table->string('conf_title',50)->comment('标题');
            $table->string('conf_name',50)->comment('变量名');
            $table->text('conf_content')->comment('变量值');
            $table->integer('conf_order')->comment('排序');
            $table->string('conf_tips',255)->comment('描述');
            $table->string('field_type',50)->comment('字段类型');
            $table->string('field_value',255)->comment('类型值');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('blog_config');
    }
}
